<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Usuario.Master" Inherits="System.Web.Mvc.ViewPage<AdminCondominio.Dominio.SeparacionAreaComun>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>

 <%  Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            

             <div class="editor-label">
               Residente
            </div>

            <div class="editor-field">
                <%= Html.DropDownList("CoResidente", ((IEnumerable<SelectListItem>)ViewData["residentes"]), "[SELECCIONE]")%>
             </div>

             <div class="editor-label">
               Area Comun
            </div>

            <div class="editor-field">
                <%= Html.DropDownList("CoAreaComun", ((IEnumerable<SelectListItem>)ViewData["areas"]), "[SELECCIONE]")%>
            </div>

           
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FeSeparacion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FeSeparacion) %>
                <%: Html.ValidationMessageFor(model => model.FeSeparacion) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NuPersonas) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NuPersonas) %>
                <%: Html.ValidationMessageFor(model => model.NuPersonas) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NoResponsable) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NoResponsable) %>
                <%: Html.ValidationMessageFor(model => model.NoResponsable) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.TxComentario) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.TxComentario) %>
                <%: Html.ValidationMessageFor(model => model.TxComentario) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Estado) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Estado) %>
                <%: Html.ValidationMessageFor(model => model.Estado) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

